package com.lframework.xingyun.promo.service.limitdiscount;

import com.lframework.starter.web.core.service.BaseMpService;
import com.lframework.starter.web.core.components.resp.PageResult;
import com.lframework.xingyun.promo.entity.MarketingLimitdiscount;
import com.lframework.xingyun.promo.vo.limitdiscount.CreateMarketingLimitdiscountVo;
import com.lframework.xingyun.promo.vo.limitdiscount.QueryMarketingLimitdiscountVo;
import com.lframework.xingyun.promo.vo.limitdiscount.UpdateMarketingLimitdiscountVo;

import java.util.List;

/**
 * 限时折扣活动表 Service
 */
public interface MarketingLimitdiscountService extends BaseMpService<MarketingLimitdiscount> {

    /**
     * 查询列表
     * @return
     */
    PageResult<MarketingLimitdiscount> queryPage(Integer pageIndex, Integer pageSize, QueryMarketingLimitdiscountVo vo);

    /**
     * 查询列表
     * @param vo
     * @return
     */
    List<MarketingLimitdiscount> queryList(QueryMarketingLimitdiscountVo vo);

    /**
     * 根据ID查询
     * @param id
     * @return
     */
    MarketingLimitdiscount findById(String id);

    /**
     * 创建
     * @param vo
     * @return
     */
    String create(CreateMarketingLimitdiscountVo vo);

    /**
     * 修改
     * @param vo
     */
    void update(UpdateMarketingLimitdiscountVo vo);

}

